/*
 * DataReader.h
 *
 *  Created on: Oct 1, 2010
 *      Author: blyth
 */

#ifndef SIMDATAREADER_H_
#define SIMDATAREADER_H_

#include <TFile.h>
#include <TH2D.h>
#include <TTree.h>

class SimDataReader {
public:
	SimDataReader(char*, int);
	virtual ~SimDataReader();

	bool ReadNext(TH2D*);

private:
	TFile* file;
	int index;
	int photon;
	TTree* tree;
	TBranch* BHVetoBranch;
	bool BHVeto;
	TBranch* frontVetoBranch;
	bool frontVeto;
	TBranch* rearVetoBranch;
	bool rearVeto;
	TBranch* sideVetoBranch;
	bool sideVeto;
	TBranch* barrelVetoBranch;
	bool barrelVeto;
	const int maxPhotons;
};

#endif /* SIMDATAREADER_H_ */
